<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<?php
  unset($this->_scripts[$this->baseurl.'/media/system/js/mootools.js']);
  unset($this->_scripts[$this->baseurl.'/media/system/js/caption.js']);
  $user = JFactory::getUser();	

?>
        <meta name="keywords" content="">
		<meta name="description" content="">

        <link rel="shortcut icon" type="image/x-icon" href="templates/bookrengoring/favicon.ico" />
        <link rel="shortcut icon" type="image/x-icon" href="templates/bookrengoring/favicon.png" />
		
        <link rel="stylesheet" type="text/css" media="screen" href="templates/bookrengoring/css/reset.css" />
		<link rel="stylesheet" type="text/css" media="print"  href="templates/bookrengoring/css/print.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="templates/bookrengoring/css/typography.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="templates/bookrengoring/css/styles.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="templates/bookrengoring/css/thickbox.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="templates/bookrengoring/css/slidingtabs.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="templates/bookrengoring/css/jquery-ui-1.8.18.custom.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="templates/bookrengoring/css/datetimepicker.css" />
		
        <!-- js files -->
		<script type="text/javascript" src="templates/bookrengoring/js/jquery-1.7.min.js"></script>
        <script type="text/javascript" src="templates/bookrengoring/js/jquery.thickbox.compressed.js"></script>
        <script type="text/javascript" src="templates/bookrengoring/js/jquery.nivo.slider.pack.js" ></script>    
        <script type="text/javascript" src="templates/bookrengoring/js/jquery-ui-1.8.11.custom.min.js" ></script>
        <script type="text/javascript" src="templates/bookrengoring/js/jquery.calendrical.js" ></script>
        <script type="text/javascript" src="templates/bookrengoring/js/accordion.js" ></script>
        <script type="text/javascript" src="templates/bookrengoring/js/jquery.mousewheel.min.js"></script>
		<script type="text/javascript" src="templates/bookrengoring/js/jquery.easing.1.3.js"></script>		
		<script type="text/javascript" src="templates/bookrengoring/js/tabs.js"></script>
		<script type="text/javascript" src="templates/bookrengoring/js/jquery-ui-timepicker-addon.js"></script>
		<script type="text/javascript" src="templates/bookrengoring/js/jquery-ui-sliderAccess.js"></script>
        <script type="text/javascript">
		 (function($) {
			$(window).load(function() {
			$('#slider').nivoSlider({
				effect:'fade',
				pauseTime:4000,
				pauseOnHover:true,
				 directionNav: false
				});	
			});       
			})(jQuery);
		</script>
        <!-- js files -->

        <!--[if gt IE 7]><div class="ie ie8"><![endif]-->
        <!--[if IE 7]><div class="ie ie7"><![endif]-->
        <!--[if IE 6]><div class="ie ie6"><![endif]-->
        <!--[if lt IE 6]><div class="ie ie5"><![endif]-->
        <!--[if !IE]>--><div class="ie0"><!--<![endif]-->
		<script type="text/javascript" src="templates/bookrengoring/js/get_nav.js"></script>
		</head>
		<body>
            <!-- page content -->
            <div class="wrapper">
                <div id="page">
                	<!--Begin Container-->
                	<div id="container">
                    
                        <!-- Begin Header-->		
						<div id="header">
                        	<div class="header-top">
                                <a href="index.php" class="logo fl-left" title="bookrengoring.dk"><img src="templates/bookrengoring/img/sggroup_logo.png" alt="Service Gruppen ApS" /></a>
                                <div class="header-tr fl-right">
                                	
									<div id="logged">	
									<?php
																	
									if($user->guest==0) {?>									
                                    	<div class="logged-bar">
                                            <span>Velkommen: <strong class="user"><?php ?></strong></span>
                                            <a class="profile" href="index.php?option=com_user&view=user&layout=myprofile">Min profil</a>
                                            <a class="logout" href="index.php?option=com_user&view=login&task=logout">Log ud</a>
                                        </div>
										<?php }?>
                                    </div>
                                </div>
								<div class="main-navigation">
                                    <!--main menu-->
                                    <div id="menu">
                                        <ul id="topNav">
                                             <jdoc:include type="modules" name="menu" />      
                                        </ul>                    
                                    </div>
                                   <?php if($user->guest!=0){ ?> <a id="loginBtn" class="thickbox" href="index.php?option=com_user&view=login&tmpl=component&height=310&width=392">Login</a> <?php }?>
                                </div>
                            </div>
                        </div>
						<div style="display:none"> 
             			<jdoc:include type="message" />
						</div>  
                        <!-- / Header-->
                        <!-- Begin main content -->
                        <jdoc:include type="component" />
                        <!-- / end main content -->
								<?php 		
									$db = &JFactory::GetDBO();
									$query2 = "SELECT * FROM jos_content WHERE id =21";
									$db->setQuery($query2);
									$row3 = $db->loadObject();								
								?>                       
					   <div id="footer">
                           <?php echo $row3->introtext?>
                        </div>
					</div>
                    <!--/Container--> 
            </div>
			<!--/ page content -->
            
    	</div> 
		<style>
img{border: none;}
.bg_alert{ width:270px; height:115px; background:url(templates/bookrengoring/img/bg_alert.png) no-repeat top left; margin:0px auto; padding:15px 0px 0px 83px; color:#000;}
.m35l{ margin-left:35px;}
</style>
<script type="text/javascript">
	jQuery(document).ready(function(cash) {
		if(jQuery("#system-message  ul li").html() != null) {
			$('#alert').html(jQuery("#system-message  ul li").html());
			$('#backoverlay').show();
			$('#show_popup').show();	  
		};
		close_popup=function(){		
			var fel=$('#f_focus').html();
			$('#backoverlay').hide();
			$('#show_popup').hide();
			$('#' + fel ).focus();
		};
	});
</script>
<div class="bg_alert" id="show_popup" style="display:none; position: fixed; top: 35%; left: 50%; z-index:10001; margin-left:-140px;">
<span id="f_focus" style="display:none;"></span>
<div style="margin:0; padding-top:0px; padding-right: 15px; min-height:74px; font-size: 12px;" id="alert"></div>
<div style="padding-left: 40px;"><a href="javascript:void(0);" onclick="close_popup();"><img src="templates/bookrengoring/img/bt_luk1.png" alt="" /></a></div>
</div>
<div style="display: none;position: fixed; top: 0;left: 0;width: 100%;height: 100%;background-color: #000000;z-index:10000;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);" id="backoverlay"></div>
	</body>
</html>